<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;" />
        <meta name="description" content="" />
        <meta name="author" content="mandrill-cms" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><?php echo Mandrill::getApp()->title; ?></title>
        <link rel="shortcut icon" href="favicon.ico" />
        <link rel="apple-touch-icon" href="apple-touch-icon.png" />
        <?php echo $mlStylesheets; ?>
    </head>
<body>
<div id="wrapper">
	<div id="header-wrapper">
		<div id="header">
			<div id="logo">
				<h1><a href="?r=ml-blog"><?php echo Mandrill::getApp()->title; ?></a></h1>
			</div>
			<div id="menu">
				<?php echo $menu; ?>
			</div>
		</div>
	</div>
	<!-- end #header -->
	<div id="page">
		<div id="page-bgtop">
			<div id="page-bgbtm">
				<div id="content">
                                    <?php echo $mlContent; ?>
				</div>
				<!-- end #content -->
				<div id="sidebar">
					<ul>
						<li>
							<div id="search" >
								<form method="get" action="#">
									<div>
										<input type="text" name="s" id="search-text" value="" />
										<input type="submit" id="search-submit" value="GO" />
									</div>
								</form>
							</div>
							<div style="clear: both;">&nbsp;</div>
						</li>
						<li>
							<h2>Aliquam tempus</h2>
							<p>Mauris vitae nisl nec metus placerat perdiet est. Phasellus dapibus semper consectetuer hendrerit.</p>
						</li>
						<li>
							<h2>Categories</h2>
                                                        <?php if (!empty($categories)): ?>
							<ul>
                                                            <?php foreach ($categories as $category){ ?>
								<li><a href="#"><?php echo $category->name; ?></a></li>
                                                            <?php } ?>
							</ul>
                                                        <?php else: ?>
                                                        <ul>
                                                            <li>No categories</li>
                                                        </ul>
                                                        <?php endif; ?>
						</li>
						<li>
							<h2>Blogroll</h2>
							<?php if (!empty($links)): ?>
							<ul>
                                                            <?php foreach ($links as $link){ ?>
								<li><a href="<?php echo $link->url; ?>"><?php echo $link->name; ?></a></li>
                                                            <?php } ?>
							</ul>
                                                        <?php else: ?>
                                                        <ul>
                                                            <li>No links</li>
                                                        </ul>
                                                        <?php endif; ?>
						</li>
					</ul>
				</div>
				<!-- end #sidebar -->
				<div style="clear: both;">&nbsp;</div>
			</div>
		</div>
	</div>
	<!-- end #page -->
</div>
<div id="footer">
	<p><?php echo $footer_content; ?></p>
</div>
<!-- end #footer -->
<?php echo $mlScripts; ?>
</body>
</html>
